<template>
    <div class="box">
        <slotBox>
            <template v-slot:com>
                <div class="top">
                    <div class="box_left">提示</div>
                    <div class="box_center">
                    </div>
                    <div class="box_right" @click="errorBtnFun">
                        ×
                    </div>
                </div>
                <div class="button">
                    <div class="button_center">是否确认删除</div>
                    <div class="button_btn">
                        <div @click="onedelBtnFun" :style="{ 'color': item == 1 ? '#FFFFFF' : '#5B9FC3' }">取消</div>
                        <div @click="delBtnFun" :style="{ 'color': item1 == 1 ? '#FFFFFF' : '#5B9FC3' }">确定</div>
                    </div>
                </div>
            </template>
        </slotBox>
    </div>
</template>
<script>

export default {
    data() {
        return {
            item: 0,
            item1: 0,
        }
    },
    components: {
        slotBox: () => import("../SslotCom/top_index.vue")
    },
    methods: {
        delBtnFun() {
            this.item1 = 1;
            this.$emit("delBtnFun")
        },
        onedelBtnFun() {
            this.item = 1;
            this.$emit('oneDelBtnFun')
        
        },
        errorBtnFun() {
      
            this.$emit('errorBtnFun')
          

        }
    }

}
</script>
<style lang="less" scoped>
.box {
    width: 452px;
    height: 206px;
    background: #03153B;
    opacity: 0.95;
    box-shadow: inset 0px 0px 54px 0px #0d3eb8b5;


    .top {
        width: 100%;
        height: 30px;
        position: relative;
        display: flex;
        font-size: 30px;

        .box_left {
            width: 20%;
            height: 100%;
            line-height: 30px;
            text-align: center;
            color: white;
            font-size: 14px;
        }

        .box_center {
            width: 90%;
            height: 100%;
            background: url("../../assets/imgx/message-bg.png") no-repeat;
            background-size: 100% 100%;
        }

        .box_right {
            width: 18px;
            height: 18px;
            position: absolute;
            top: -10px;
            color: #3785CE;
            right: 10px;
        }
    }

    .button {
        width: 100%;
        height: 176px;

        .button_center {
            width: 100%;
            height: 116px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-family: SourceHanSansCN-Regular, SourceHanSansCN;
            font-weight: 400;
            color: #FFFFFF;
        }

        .button_btn {
            width: 100%;
            height: 40px;
            display: flex;
            justify-content: space-evenly;

            div {
                width: 136px;
                height: 30px;
                background: #00184B;
                border: 1px solid #5B9FC3;
                color: #8EB5CD;
                text-align: center;
                font-size: 16px;
                font-family: SourceHanSansCN-Regular, SourceHanSansCN;
                font-weight: 400;
                line-height: 30px;
            }
        }
    }
}
</style>